Skip to content

Conversation

@JPryce-Aklundh
Copy link
Collaborator

@JPryce-Aklundh JPryce-Aklundh marked this pull request as ready for review November 29, 2024 10:02
@JPryce-Aklundh JPryce-Aklundh added cherry-pick-this-to-5.x Cherry pick this PR changes to the 5.x branch cherry-pick-this-to-cypher-25 labels Nov 29, 2024
To return all paths that are tied for shortest length, use the keywords `ALL SHORTEST`:

.Query
// tag::patterns_shortest_paths_shortest_k[]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// tag::patterns_shortest_paths_shortest_k[]
// tag::patterns_shortest_paths_all_shortest[]

WHERE wos.name = "Worcester Shrub Hill" AND bmv.name = "Bromsgrove"
RETURN [n in nodes(p) | n.name] AS stops
----
// end::patterns_shortest_paths_shortest_k[]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// end::patterns_shortest_paths_shortest_k[]
// end::patterns_shortest_paths_all_shortest[]

@neo-technology-commit-status-publisher
Copy link
Collaborator

neo-technology-commit-status-publisher commented Dec 3, 2024

Thanks for the documentation updates.

The preview documentation has now been torn down - reopening this PR will republish it.

@JPryce-Aklundh JPryce-Aklundh merged commit 0513358 into neo4j:dev Dec 3, 2024
5 checks passed
@JPryce-Aklundh JPryce-Aklundh deleted the cheat_sheet_patterns branch December 3, 2024 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick-this-to-5.x Cherry pick this PR changes to the 5.x branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants